************************************************************
* POPPA Dataset - Variable Labels and Value Labels
************************************************************

cd "C:\Users\b1040249\Dropbox\Research\POPPA\POPPA v2\Data_publication\V2_201125\non_shareable_v2\"
*adapt this link 
use poppa_integrated_unlabelled_v2

label var country "Country"
label var country_short "Country Abbreviated"
label var party_short "Party Name Short"

rename wave wave_old
gen wave = . 
replace wave = 1 if wave_old =="Wave 1 - 2018"
replace wave = 2 if wave_old =="Wave 2 - 2023"
label define wave 1 "Wave 1 - 2018" 2 "Wave 2 - 2023"
label values wave wave 
label var wave "Survey Wave"
drop wave_old
order wave, before(party_name_english)

label var party_name_english "Party Name English"
label var party_name_original "Party Name Original"

label var family "Party Family"
label define family1 1 "1 - Radical Right" 2 "2 - Conservatives" 3 "3 - Liberal" 4 "4 - Christian Democratic" 5 "5 - Social Democratic" 6 "6 - Radical Left" 7 "7 - Green" 8 "8 - Regionalist" 9 "9 - No family" 10 "10 - Confessional" 11 "11 - Agrarian" 
label values family family1

label var family_label "Party Family Name"
label var poppa_id "POPPA ID"
label var partyfacts_id "Partyfacts ID"
label var n_experts "Number of Experts"
label var mean_n_experts "Mean Number of Experts"
label var manichean "Manichean Worldview"
label var indivisible "View of Homogeneity of the People"
label var generalwill "View of a General Will"
label var peoplecentrism "People-Centrism"
label var antielitism "Anti-Elitism"
label var peopleimm  "View of Immigrants as People"
label var peoplewealthy  "View of Wealthy as People"
label var elitepol "View of Politicians as Elite"
label var elitemedia "View of Journalists as Elite"
label var eliteecon"View of CEOs as Elite"
label var elitecult "View of Academics as Elite"
label var lrecon "Left-Right Placement: Economic Issues"
label var salienceecon "Salience of Economic Issues"
label var immigration "Party Position: Immigration"
*label var immigration "Support for Immigration"
label var nativism "Nativism"
label var lifestyle "Party Position: Social Lifestyle"
*label var lifestyle "Support for Liberal Lifestyle"
label var laworder "Party Position: Civil Liberties vs. Law and Order"
*label var laworder "Support for Law and Order"
label var saliencecult "Salience of Cultural Issues"
label var lroverall "Left-Right Placement" 
label var eu "Party Position: EU"
label var climatepolicy "Party Position: Climate Policy"
label var climatescience"Party Position: Climate Science"
label var complex "Political Decision-Making Portrayed as Complex"
label var emotional "Appeal to Emotions"
label var intradem "Intra-Party Democracy"
label var personalised "Personalized Leadership"
label var populism_mean "Populism Mean"
label var populism_cfa "Populism Factor (CFA)"
label var populism_cfa_rescaled "Populism Factor Rescaled (CFA)"

cd "C:\Users\b1040249\Dropbox\Research\POPPA\POPPA v2\POPPA2_MASTER_DATA\POPPA_Replication_v2\final_data_v2\"
save poppa_integrated_v2, replace 